package com.yf1706.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.yf1706.comm.RowMapper;
public class orderdetailRowMapper implements RowMapper<orderdetailbean>{
	@Override
	public orderdetailbean mapper(ResultSet rs) throws SQLException {
		orderdetailbean orderdetail=new orderdetailbean();
		orderdetail.setOid(rs.getInt("oid"));
		orderdetail.setGid(rs.getInt("gid"));
		orderdetail.setGnum(rs.getString("gnum"));
		orderdetail.setGname(rs.getString("gname"));		
		orderdetail.setGprice(rs.getDouble("gprice"));
		return orderdetail;
	}
}
